package com.isdust.jy.mbank.adapter;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.isdust.jy.mbank.R;
import com.isdust.zor.core.Habitat;


/**
 *
 * Created by zor on 2016/10/27.
 */


public class HabitAdapter<T> extends BaseAdapter<T> {

    @Override
    public View getView(int i, View view, ViewGroup viewGroup) {
        inflater = LayoutInflater.from(viewGroup.getContext());
        View v = inflater.inflate(R.layout.activity_main_list,null);
        TextView title = (TextView)v.findViewById(R.id.tv_hb_title);

        title.setText(((Habitat)tList.get(i)).title);


        return v;
    }
}
